<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style type="text/css">
      * {
        margin: 0;
        padding: 0;
      }

      .nav {
        width: 960px;
        height: 50px;
        border: 1px solid red;
        margin: 100px auto;
      }

      .nav ul {
        list-style: none;
      }

      .nav ul li {
        float: left;
        width: 120px;
        height: 50px;
        text-align: center;
        line-height: 50px;
      }

      .nav ul li a {
        display: block;
        width: 120px;
        height: 50px;
      }

      .nav ul li a:link, .nav ul li a:visited {
        text-decoration: none;
        background-color: rgb(87, 55, 13);
        color: white;
      }

      .nav ul li a:hover {
        background-color: orange;
      }
    </style>
  </head>
  <body>
    <div class="nav">
      <ul>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
        <li><a href="#">网站栏目</a></li>
      </ul>
    </div>
  </body>
</html>
